/*
 * @Author: 专送Pro
 * @Date: 2019-08-23 13:17:18
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-13 15:53:58
 * @Description: 配置文件
 */
export default {
  data() {
    return {
      searchProps: [
        {
          label: "被举报人ID",
          type: "number",
          key: "targetid",
          placeholder: "请输入被举报人ID"
        }
      ],
      columns: [
        {
          title: "被举报人ID",
          key: "targetid"
        },
        {
          title: "被举报人昵称",
          key: "targetname"
        },
        {
          title: "被举报次数",
          render: (h, params) => {
            const row = params.row;
            return h(
              "span",
              {
                style: {
                  cursor: "pointer",
                  color: "#2d8cf0"
                },
                on: {
                  click: () => {
                    this.showReport = true;
                    this.getReportData(row.targetid);
                  }
                }
              },
              row.times
            );
          }
        }
      ]
    };
  }
};
